<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-6">{:__('请勾选需要选择的题目')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="checkbox">
                {if $questionList}
                {foreach name="questionList" item="vo"}
                <label for="c-question_id-{$key}" style="display: block;margin-top: 5px; font-size: medium;">
                    <input id="c-question_id-{$key}" name="row[question_id][]" type="checkbox" value="{$vo->question_id}" /> {$vo->title}
                </label>
                {/foreach}
                {else}
                <small style="margin-top: 5px; font-size: medium;color: red;">温馨提示：题目已全部添加</small>
                {/if}
            </div>
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
